//
//  KDWebResultCell.m
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/12/20.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import "KDWebResultCell.h"
#import "KDAddWebsiteResultModel.h"
@interface KDWebResultCell ()
@property (weak, nonatomic) IBOutlet UILabel *websiteNameLb;
@property (weak, nonatomic) IBOutlet UILabel *addressLb;
@property (weak, nonatomic) IBOutlet UILabel *resultLb;

@end
@implementation KDWebResultCell

- (void)awakeFromNib {
    // Initialization code
}

+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *cellId =@"KDWebResultCell";
    
    UINib *xib = [UINib nibWithNibName:@"KDWebResultCell" bundle:nil];
    [tableView registerNib:xib forCellReuseIdentifier:cellId];
    KDWebResultCell *cell =[tableView dequeueReusableCellWithIdentifier:cellId];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
    
}

- (void)setModel:(KDAddWebsiteResultModel *)model{
    _model = model;
    self.websiteNameLb.text = model.name;
    self.addressLb.text = model.url;
    self.resultLb.text = model.statusStr;
}
@end
